package com.lq.ecoldchain.ui.mine.user.phonenew

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/5 0005  9:43
*function by lq
*/
val phoneNewKodeinModule = Kodein.Module("Phone_New_Kodein_Module"){
    bind<PhoneNewViewModel>() with scoped(AndroidLifecycleScope).singleton {
        PhoneNewViewModel()
    }

    bind<PhoneNewDelegate>()with scoped(AndroidLifecycleScope).singleton {
        PhoneNewDelegate(instance())
    }
}